<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css"
	href="/sce-web-ref/CSS/formato.css">
<style type="text/css">
label {
	font: normal 12px courier !important;
}
</style>
<script type="text/javascript" language="javascript">
	function retornar() {
		history.go(-1);
	}
	function cadastrar() {
		document.frmCadastrar.acao.value = "CadastrarUsuario";
		document.frmCadastrar.submit();
	}
</script>
</head>
<body>
	<jsp:include page="Cabecalho.jsp" />
	<div id="principal">
		<div id="titulo">
			<h3>Cadastrar Usuário</h3>
		</div>
		<hr>
		<div id="formulario3">
			<form name="frmCadastrar" action="/sce-web-ref2/ServletControle"
				method="post">
				<table id="tabcampos">
					<tr>
						<td><label id="txt">Usuário: </label></td>
						<td><input type="text" id="campo" name="txtUsuario" /></td>
					</tr>
					<tr>
						<td><label id="txt">Nome: </label></td>
						<td><input type="text" id="campo" name="txtNome" /></td>
					</tr>
					<tr>
						<td><label id="txt">CPF: </label></td>
						<td><input type="text" id="campo" name="txtCpf" /></td>
					</tr>
					
					<tr>
						<td><label id="txt">Senha: </label></td>
						<td><input type="password" id="campo" name="txtSenha" /></td>
					</tr>
					<tr>
						<td><label id="txt">Repetir senha: </label></td>
						<td><input type="password" id="campo" name="txtSenhaRepetida" /></td>
					</tr>

					<tr>
						<td><input type="button" id="botao" name="botao"
							value="Cadastrar" onclick="cadastrar()" /> <input type="hidden"
							name="acao" value="CadastrarUsuario"></td>
						<td><input type="button" value="Cancelar"
							onclick="retornar()" /></td>

					</tr>
				</table>
				<%
					String erro = (String) request.getAttribute("erro");
					if (erro == null)
						erro = "";
				%>
				<label><%=erro%></label>
			</form>
		</div>
	</div>
	<jsp:include page="Rodape.jsp" />
</body>
</html>